﻿using System;
using System.Windows.Media.Imaging;
using Brjnk.Maps.Downloader;

namespace Brjnk.Maps
{
    public class GetTileTaskUpdater
    {
        public readonly Action<BitmapImage, Exception> completed;
        public readonly Action<DownloadTask> updateDonwloadTask;
        public readonly Action<GetTileSource> updateSource;

        internal GetTileTaskUpdater(
            Action<Downloader.DownloadTask> updateDonwloadTask,
              Action<GetTileSource> updateSource,
            Action<BitmapImage, Exception> completed
            )
        {
            this.updateDonwloadTask = updateDonwloadTask;
            this.completed = completed;
            this.updateSource = updateSource;
        }
    }
}